<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="{$row.title}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-state" class="control-label col-xs-12 col-sm-2">{:__('State')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="stateList" item="vo"}
            <label for="row[state]-{$key}"><input id="row[state]-{$key}" name="row[state]" type="radio" value="{$key}" {in name="key" value="$row.state"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label for="c-address" class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" data-rule="required" class="form-control" name="row[address]" type="text" value="{$row.address}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-info" class="control-label col-xs-12 col-sm-2">{:__('Info')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-info" class="form-control " rows="5" name="row[info]" cols="50">{$row.info}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-fangdong" class="control-label col-xs-12 col-sm-2">{:__('Fangdong')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fangdong" data-rule="required" class="form-control" name="row[fangdong]" type="text" value="{$row.fangdong}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-fd_tel" class="control-label col-xs-12 col-sm-2">{:__('Fd_tel')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fd_tel" data-rule="required" class="form-control" name="row[fd_tel]" type="text" value="{$row.fd_tel}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-fd_idcardimage" class="control-label col-xs-12 col-sm-2">{:__('Fd_idcardimage')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-fd_idcardimage" class="form-control" size="50" name="row[fd_idcardimage]" type="text" value="{$row.fd_idcardimage}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-fd_idcardimage" class="btn btn-danger plupload" data-input-id="c-fd_idcardimage" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-fd_idcardimage"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-fd_idcardimage" class="btn btn-primary fachoose" data-input-id="c-fd_idcardimage" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-fd_idcardimage"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-fd_idcardimage"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-fd_idcard" class="control-label col-xs-12 col-sm-2">{:__('Fd_idcard')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fd_idcard" data-rule="required" class="form-control" name="row[fd_idcard]" type="text" value="{$row.fd_idcard}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-zl_rent" class="control-label col-xs-12 col-sm-2">{:__('Zl_rent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-zl_rent" data-rule="required" class="form-control" step="0.01" name="row[zl_rent]" type="number" value="{$row.zl_rent}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-zl_type" class="control-label col-xs-12 col-sm-2">{:__('Zl_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-zl_type" data-rule="required" class="form-control selectpicker" name="row[zl_type]">
                {foreach name="zlTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.zl_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-zl_starttime" class="control-label col-xs-12 col-sm-2">{:__('Zl_starttime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-zl_starttime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[zl_starttime]" type="text" value="{$row.zl_starttime|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-zl_endtime" class="control-label col-xs-12 col-sm-2">{:__('Zl_endtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-zl_endtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[zl_endtime]" type="text" value="{$row.zl_endtime|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-rentid" class="control-label col-xs-12 col-sm-2">{:__('Rentid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rentid" class="form-control" name="row[rentid]" type="number" value="{$row.rentid}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-user" class="control-label col-xs-12 col-sm-2">{:__('User')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user" class="form-control" name="row[user]" type="text" value="{$row.user}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-income" class="control-label col-xs-12 col-sm-2">{:__('Income')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-income" data-rule="required" class="form-control" name="row[income]" type="number" value="{$row.income}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-expenditure" class="control-label col-xs-12 col-sm-2">{:__('Expenditure')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-expenditure" data-rule="required" class="form-control" name="row[expenditure]" type="number" value="{$row.expenditure}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
